package com.example.spzx.Mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {
    @Select("select * from sys_role_menu where role_id=#{roleId}")
    List<Long> getlist(Integer roleId);

    @Delete("delete from sys_role_menu where role_id=#{roleId}")
    void deletes(Long roleId);

    void insert(Long roleId, Number id);
    @Select("select menu_id from sys_role_menu where role_id=#{roleId}")
    List<Long> getlist1(Integer roleId);
}
